package c.e.a.b.f.b;

import android.os.Bundle;
import android.os.Parcel;
import android.os.RemoteException;
import b.i.b.f;
import c.e.a.b.e.c.s0;
import c.e.a.b.e.c.v;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import com.google.android.gms.measurement.internal.zzaq;
import com.google.android.gms.measurement.internal.zzku;
import com.google.android.gms.measurement.internal.zzn;
import com.google.android.gms.measurement.internal.zzz;
import com.huawei.hms.api.ConnectionResult;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public abstract class l3 extends s0 implements i3 {
    public l3() {
        super("com.google.android.gms.measurement.internal.IMeasurementService");
    }

    public final boolean y0(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
        String str = "null reference";
        boolean z = false;
        zzn zzn;
        z4 z4Var;
        String u0;
        List X;
        switch (i) {
            case 1:
                ((z4) this).t0((zzaq) v.a(parcel, zzaq.CREATOR), (zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                break;
            case 2:
                zzku zzku = (zzku) v.a(parcel, zzku.CREATOR);
                zzn zzn2 = (zzn) v.a(parcel, zzn.CREATOR);
                z4 z4Var2 = (z4) this;
                Objects.requireNonNull(zzku, str);
                z4Var2.M0(zzn2);
                z4Var2.K0(new o5(z4Var2, zzku, zzn2));
                parcel2.writeNoException();
                break;
            case 4:
                zzn = (zzn) v.a(parcel, zzn.CREATOR);
                z4Var = (z4) this;
                z4Var.M0(zzn);
                z4Var.K0(new q5(z4Var, zzn));
                parcel2.writeNoException();
                break;
            case 5:
                zzaq zzaq = (zzaq) v.a(parcel, zzaq.CREATOR);
                String readString = parcel.readString();
                parcel.readString();
                z4Var = (z4) this;
                Objects.requireNonNull(zzaq, str);
                f.N(readString);
                z4Var.L0(readString, true);
                z4Var.K0(new m5(z4Var, zzaq, readString));
                parcel2.writeNoException();
                break;
            case 6:
                zzn = (zzn) v.a(parcel, zzn.CREATOR);
                z4Var = (z4) this;
                z4Var.M0(zzn);
                z4Var.K0(new c5(z4Var, zzn));
                parcel2.writeNoException();
                break;
            case 7:
                List arrayList;
                zzn = (zzn) v.a(parcel, zzn.CREATOR);
                if (parcel.readInt() != 0) {
                    z = true;
                }
                z4Var = (z4) this;
                z4Var.M0(zzn);
                try {
                    List<u9> list = (List) ((FutureTask) z4Var.a.a().t(new n5(z4Var, zzn))).get();
                    arrayList = new ArrayList(list.size());
                    for (u9 u9Var : list) {
                        if (z || !t9.r0(u9Var.c)) {
                            arrayList.add(new zzku(u9Var));
                        }
                    }
                } catch (InterruptedException | ExecutionException e) {
                    z4Var.a.d().f.c("Failed to get user properties. appId", q3.s(zzn.a), e);
                    arrayList = null;
                }
                parcel2.writeNoException();
                parcel2.writeTypedList(arrayList);
                break;
            case 9:
                byte[] Z = ((z4) this).Z((zzaq) v.a(parcel, zzaq.CREATOR), parcel.readString());
                parcel2.writeNoException();
                parcel2.writeByteArray(Z);
                break;
            case 10:
                ((z4) this).C0(parcel.readLong(), parcel.readString(), parcel.readString(), parcel.readString());
                parcel2.writeNoException();
                break;
            case 11:
                u0 = ((z4) this).u0((zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                parcel2.writeString(u0);
                break;
            case 12:
                ((z4) this).G0((zzz) v.a(parcel, zzz.CREATOR), (zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                break;
            case 13:
                ((z4) this).J0((zzz) v.a(parcel, zzz.CREATOR));
                parcel2.writeNoException();
                break;
            case 14:
                u0 = parcel.readString();
                str = parcel.readString();
                ClassLoader classLoader = v.a;
                if (parcel.readInt() != 0) {
                    z = true;
                }
                X = ((z4) this).X(u0, str, z, (zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                parcel2.writeTypedList(X);
                break;
            case 15:
                u0 = parcel.readString();
                str = parcel.readString();
                String readString2 = parcel.readString();
                ClassLoader classLoader2 = v.a;
                if (parcel.readInt() != 0) {
                    z = true;
                }
                X = ((z4) this).k0(u0, str, readString2, z);
                parcel2.writeNoException();
                parcel2.writeTypedList(X);
                break;
            case 16:
                X = ((z4) this).H0(parcel.readString(), parcel.readString(), (zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                parcel2.writeTypedList(X);
                break;
            case 17:
                X = ((z4) this).F0(parcel.readString(), parcel.readString(), parcel.readString());
                parcel2.writeNoException();
                parcel2.writeTypedList(X);
                break;
            case 18:
                zzn = (zzn) v.a(parcel, zzn.CREATOR);
                z4Var = (z4) this;
                z4Var.L0(zzn.a, false);
                z4Var.K0(new h5(z4Var, zzn));
                parcel2.writeNoException();
                break;
            case ConnectionResult.SERVICE_MISSING_PERMISSION /*19*/:
                ((z4) this).v0((Bundle) v.a(parcel, Bundle.CREATOR), (zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                break;
            case ModuleDescriptor.MODULE_VERSION /*20*/:
                ((z4) this).a0((zzn) v.a(parcel, zzn.CREATOR));
                parcel2.writeNoException();
                break;
            default:
                return false;
        }
        return true;
    }
}
